<template>
  <view class="home">
    <view class="bar">
      <view class="btn appointment" @click="toApointment">参观预约</view>
      <view class="btn mine" @click="toMine">个人中心</view>
    </view>
  </view>
</template>

<script setup>
  const toApointment = () => {
    uni.navigateTo({
      url: "/pages/mine/mine",
    })
  }
  const toMine = () => {
    uni.navigateTo({
      url: "/pages/form/form"
    })
  }
</script>

<style>
  .home {
    background: url("/static/bg.jpg") no-repeat center center;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    position: relative;
  }

  .bar {
    position: absolute;
    bottom: 30vh;
    left: 0;
    background-color: rgba(170, 0, 0, 0.8);
    width: 100%;
    height: 50px;
  }

  .btn {
    color: white;
    font-size: 30px;
    width: 50%;
    float: left;
    text-align: center;
    cursor: pointer;
  }
</style>